<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<div id="login" class="boxed">
	<c:if test="${sessionScope.autenticado != null}">
		<div class="content">
			<form id="" action="sesion.do" method="post" >
				<input id= "inputsubmit1" type="submit"  value="Salir" /><br/>
				<input type="hidden" name="accion" value="cerrar" />
			</form>
		</div>
	</c:if>

	<c:if test="${sessionScope.autenticado == null}">
	<li id="search">
		<h2>Ingresar</h2>
		<div>
           <form id="form1" action="sesion.do" method="post" >
				<fieldset>
					<label for="inputtext1"><p>Nombre de Usuario:</label>
					<input id="inputtext1" type="text" name="nombre" value="" />
					<label for="inputtext2"><p>Digite su contrase&ntildea:</label>
					<input id="inputtext2" type="password" name="password" value="" /><p>
					<input id="inputsubmit1" type="submit" name="inputsubmit1" value="Entrar" />
					<c:out value="${param.error}"/>
					<input type="hidden" name="accion" value="iniciar" />
				</fieldset>
    		</form>
       	</div>
	</li>
	</c:if>
</div>

